//对象类型
//TS中对象类型其实就是在描述对象的结构

//1.创建一个对象类型person
let person: {
  name: string;
  age: number;
  sayHi(): void;
} = {
  name: "jack",
  age: 18,
  sayHi() {},
};

console.log('person',person)